package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ExchangePriceSetting;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 换电套餐设置
 * 
 * @Date:Created in 2018/6/30 16:32
 * @Author:
 * @Modified By: zjn 2018/6/30 16:32
 */ 
public interface ExchangePriceSettingMapper extends MasterMapper {
    /**
    * 根据主键查询表hdw_exchange_price_setting
    * 
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangePriceSetting
    * @Author By: zjn 2018/6/30  16:32
    */ 
    ExchangePriceSetting find(Long id);

    ExchangePriceSetting findAgency(Long id);
    /**
    * 根据基本价格id查询
    * 
    * @Param: [id]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePriceSetting>
    * @Author By: zjn 2018/6/30  16:32
    */ 
    List<ExchangePriceSetting> findByPriceIdList(Long id);
    /**
    * 根据活动价格id查询
    * 
    * @Param: [id]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePriceSetting>
    * @Author By: zjn 2018/6/30  16:32
    */ 
    List<ExchangePriceSetting> findByActivityIdList(Long id);
    /**
    * 查询，返回行数
    * 
    * @Param: [exchangePriceSetting]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:32
    */ 
    int findPageCount(ExchangePriceSetting exchangePriceSetting);

    int findPageCounts(ExchangePriceSetting exchangePriceSetting);
    /**
    * 分页查询
    * 
    * @Param: [exchangePriceSetting]
    * @Return: java.util.List
    * @Author By: zjn 2018/6/30  16:32
    */ 
    List findPageResult(ExchangePriceSetting exchangePriceSetting);

    List findPageResults(ExchangePriceSetting exchangePriceSetting);
    /**
    * 插入
    * 
    * @Param: [exchangePriceSetting]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:32
    */ 
    int insert(ExchangePriceSetting exchangePriceSetting);

    int insertAgency(ExchangePriceSetting exchangePriceSetting);
    /**
    * 根据主键更新
    * 
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:32
    */ 
    int update(ExchangePriceSetting entity);

    int updateAgency(ExchangePriceSetting entity);

    int updateBasePriceId(ExchangePriceSetting entity);

    int updateActivityPriceId(ExchangePriceSetting entity);
    /**
    * 根据主键删除
    * 
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:33
    */ 
    int delete(Long id);

}

